1650 PRINT:PRINT" This is the computer version of the popular board game, Mastermind."
1660 PRINT"The computer will think up colors,";
1670 PRINT" (";:COLOR 12,0:PRINT"Red/";:COLOR 14,0:PRINT"Yellow/";:COLOR 10,0:PRINT"Green/";:COLOR 9,0:PRINT"Blue";:COLOR 2,0:PRINT")";:PRINT" for a row":PRINT"comprised of four pieces, each with possibly (probably) a different color."
1680 PRINT" You try and match the pattern the computer has chosen. To do this"
1690 PRINT"you have 10 chances. Each turn, you lay down the colors in a pattern of"
1700 PRINT"your choice. The way the computer will let you know how close you are"
1710 PRINT"getting is in two types of markers he can place. These markers"
1720 PRINT"(or indicators) will be found in the rows on the far right side of"
1730 PRINT"the board. you will be given a ";:COLOR 10,0:PRINT"GREEN";:COLOR 2,0:PRINT" marker for each piece that is"
1740 PRINT"the right color AND in the right place on the board. You will be"
1750 PRINT"given a ";:COLOR 12,0:PRINT"RED";:COLOR 2,0:PRINT" piece for each piece that is the right color BUT the"
1760 PRINT"wrong position on the board. Keep guessing until you (A) guess"
1770 PRINT"the correct pattern, or (B) run out of chances."
1780 PRINT" The number in the bottom right half of the board is to tell you "
1790 PRINT"which piece in the row your invisible cursor is on. To turn that"
1800 PRINT"square into the color you choose, just hit the first letter of that"
1810 PRINT"color (i.e. R,G,B,Y) the arrow keys will let you move back and"
1820 PRINT"forth. If you change your mind, just back up and type the New"
1830 PRINT"colors letter. EXCEPT if color to be changed is yellow hit 'E' first."
1840 PRINT" The flashing arrow on the right tells you which row you are working on."
1850 PRINT "If you dont like the flashing arrow, then hit the letter 'A' to remove it."
1860 COLOR 22,0:LOCATE 25,1,0:PRINT TAB(30)"Hit any key to continue";
1870 IF INKEY$="" THEN GOTO 1870 ELSE RETURN
1880 REM ***
1890 REM *** put up solution and pat him on the back
1900 REM ***
1910 GOSUB 970
1920 LOCATE 25,14:DEF SEG:POKE &H4E,3
1930 PRINT"CONGRATULATIONS!!";
1940 FOR X=1 TO 2
1950 FOR Y=1 TO 200
1960 COLOR Y,0
1970 NEXT Y
1980 NEXT X
1990 COLOR 1,0
2000 FOR LOOP = 1 TO 3
2010 LOCATE 25,14:DEF SEG:POKE &H4E,3
2020 PRINT"CONGRATULATIONS!!";
2030 FOR DELAY=1 TO 300:NEXT DELAY
2040 LOCATE 25,14:PRINT" ";
2050 FOR DELAY=1 TO 300:NEXT DELAY
2060 NEXT LOOP
2070 LOCATE 25,14,0:PRINT "Play again (y/n)?";
2080 A$=INKEY$:IF A$="" THEN GOTO 2080 ELSE IF A$="y" OR A$="Y" THEN RUN ELSE CLS:SCREEN 0:WIDTH 80:COLOR 2,0:PRINT"thanks for playing!!":END